package com.ccb.p4.common;

import lombok.Getter;
import lombok.ToString;

/**
 * <p>功能描述：TODO </p>
 * <p>修订记录</p>
 *
 * @Author xianghui.zh
 * @Version 1.0 2022/1/7
 **/
@Getter
@ToString
public enum ResultCodeEnum {
    SUCCESS(true, 20000, "成功"),
    UNKNOWN_REASON(false, 20001, "未知错误"),
    ARGS_NULL_ERROR(false, 20002, "传参校验空指针错误");

    private Boolean success;

    private Integer code;

    private String message;

    ResultCodeEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }
}
